package c.e.a.b.e.c;

import c.e.a.b.e.c.u4.b;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.Objects;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public final class w4 {
    public static final Charset a = Charset.forName("UTF-8");
    public static final byte[] b;

    static {
        Charset.forName("ISO-8859-1");
        byte[] bArr = new byte[0];
        b = bArr;
        ByteBuffer.wrap(bArr);
        int length = bArr.length;
        int i = length + 0;
        if (length < 0) {
            throw e5.b();
        } else if (length + 0 <= Integer.MAX_VALUE) {
            i = (i + 0) + 0;
        } else {
            try {
                throw e5.a();
            } catch (e5 e) {
                throw new IllegalArgumentException(e);
            }
        }
    }

    public static int a(long j) {
        return (int) (j ^ (j >>> 32));
    }

    public static int b(boolean z) {
        return z ? 1231 : 1237;
    }

    public static Object c(Object obj, Object obj2) {
        e6 e6Var = (e6) obj2;
        n3 n3Var = (n3) ((e6) obj).c();
        Objects.requireNonNull(n3Var);
        b bVar = (b) n3Var;
        if (bVar.a.getClass().isInstance(e6Var)) {
            bVar.h((u4) ((l3) e6Var));
            return bVar.k();
        }
        throw new IllegalArgumentException("mergeFrom(MessageLite) can only merge messages of the same type.");
    }
}
